package day15;

public class TestThreadDemo01 {
    public static void main(String[] args) {
        Thread t1=new ThreadDemo01();
        t1.setName("xiancheng1");
        Thread t2=new ThreadDemo01();
        t2.setName("xiancheng2");
        System.out.println(t1.getPriority());
        System.out.println(t2.getPriority());
   t2.setPriority(Thread.MAX_PRIORITY);
   t1.setPriority(Thread.MIN_PRIORITY);
   t1.start();
   t2.start();
    }
}
